diff options
Diffstat (limited to 'src/pages/[locale]/furthsettins')
7 files changed, 0 insertions, 201 deletions
diff --git a/src/pages/[locale]/furthsettins/index.astro b/src/pages/[locale]/furthsettins/index.astro deleted file mode 100644 index a053621..0000000 --- a/src/pages/[locale]/furthsettins/index.astro +++ /dev/null @@ -1,40 +0,0 @@ ---- -import { Image } from 'astro:assets'; -import Page from '$layouts/Page.astro'; -import localeStaticPaths from '$lib/localeStaticPaths'; -import translate from '$i18n/translate'; -import tFurthsettins from '$i18n/translations/pages/furthsettins'; -import tSite from '$i18n/translations/site'; -import type Locale from '$types/Locale'; -import relativePath from '$lib/relativePath'; -import lallansImg from '$images/furthsettins/lallans-192w.jpg'; -import scotsounImg from '$images/furthsettins/scotsoun-192w.jpg'; - -export async function getStaticPaths() { - return localeStaticPaths; -} - -const locale = Astro.params.locale as Locale; -const t = translate(locale); ---- - -<Page title={t(tFurthsettins, { key: 'title' })}> - <section> - <h1>{t(tFurthsettins, { key: 'title' })}</h1> - - <ul class="link-gallery link-gallery--furthsettins"> - <li> - <a href={relativePath(Astro.url.pathname, 'lallans')} class="link-gallery__container"> - <Image src={lallansImg} alt="" /> - <p class="link-gallery__title">{t(tSite, { key: 'lallans' })}</p> - </a> - </li> - <li> - <a href={relativePath(Astro.url.pathname, 'scotsoun')} class="link-gallery__container"> - <Image src={scotsounImg} alt="" /> - <p class="link-gallery__title">{t(tSite, { key: 'scotsoun' })}</p> - </a> - </li> - </ul> - </section> -</Page> diff --git a/src/pages/[locale]/furthsettins/lallans/[issueNumber]/index.astro b/src/pages/[locale]/furthsettins/lallans/[issueNumber]/index.astro deleted file mode 100644 index 82fabf0..0000000 --- a/src/pages/[locale]/furthsettins/lallans/[issueNumber]/index.astro +++ /dev/null @@ -1,27 +0,0 @@ ---- -import Page from '$layouts/Page.astro'; -import localeStaticPaths from '$lib/localeStaticPaths'; -import translate from '$i18n/translate'; -import tFurthsettins from '$i18n/translations/pages/furthsettins'; -import type Locale from '$types/Locale'; -import { getLallansIssue } from '$data/lallans'; -import type LallansIssueNumber from '$types/LallansIssueNumber'; -import LallansIssue from '$components/LallansIssue.astro'; - -export async function getStaticPaths() { - const lallansIssueNumbers = Object.keys(getLallansIssue) as `${LallansIssueNumber}`[]; - return lallansIssueNumbers.flatMap((n) => - localeStaticPaths.map((p) => ({ ...p, params: { ...p.params, issueNumber: n } })) - ); -} - -const locale = Astro.params.locale as Locale; -const t = translate(locale); -const issueNumber = new Number(Astro.params.issueNumber).valueOf() as LallansIssueNumber; -const issue = await getLallansIssue[issueNumber](); ---- - -<Page title={t(tFurthsettins, { key: 'title' })}> - <LallansIssue issue={issue} /> - <script src="$scripts/wc/paypal-product-buttons.ts"></script> -</Page> diff --git a/src/pages/[locale]/furthsettins/lallans/[issueNumber]/payment-success-confirmation.astro b/src/pages/[locale]/furthsettins/lallans/[issueNumber]/payment-success-confirmation.astro deleted file mode 100644 index f0b9512..0000000 --- a/src/pages/[locale]/furthsettins/lallans/[issueNumber]/payment-success-confirmation.astro +++ /dev/null @@ -1,30 +0,0 @@ ---- -import Page from '$layouts/Page.astro'; -import localeStaticPaths from '$lib/localeStaticPaths'; -import translate from '$i18n/translate'; -import tPage from '$i18n/translations/pages/lallansIssuePaymentSuccessConfirmation'; -import type Locale from '$types/Locale'; -import { getLallansIssue } from '$data/lallans'; -import type LallansIssueNumber from '$types/LallansIssueNumber'; - -export async function getStaticPaths() { - const lallansIssueNumbers = Object.keys(getLallansIssue) as `${LallansIssueNumber}`[]; - return lallansIssueNumbers.flatMap((n) => - localeStaticPaths.map((p) => ({ ...p, params: { ...p.params, issueNumber: n } })) - ); -} - -const locale = Astro.params.locale as Locale; -const t = translate(locale); -const issueNumber = new Number(Astro.params.issueNumber).valueOf() as LallansIssueNumber; ---- - -<Page title={t(tPage, { key: 'title' })}> - <section> - <h1>{t(tPage, { key: 'title' })}</h1> - <p>{t(tPage, { key: 'payment-confirmation-message', issueNumber: `${issueNumber}` })}</p> - <a href={`/${locale}/furthsettins/lallans/${issueNumber}`}> - {t(tPage, { key: 'back-button-text', issueNumber: `${issueNumber}` })} - </a> - </section> -</Page> diff --git a/src/pages/[locale]/furthsettins/lallans/index.astro b/src/pages/[locale]/furthsettins/lallans/index.astro deleted file mode 100644 index a4b6d70..0000000 --- a/src/pages/[locale]/furthsettins/lallans/index.astro +++ /dev/null @@ -1,23 +0,0 @@ ---- -import Page from '$layouts/Page.astro'; -import localeStaticPaths from '$lib/localeStaticPaths'; -import translate from '$i18n/translate'; -import tPage from '$i18n/translations/pages/lallansGallery'; -import type Locale from '$types/Locale'; -import LallansIssuesGallery from '$components/LallansIssuesGallery.astro'; - -export async function getStaticPaths() { - return localeStaticPaths; -} - -const locale = Astro.params.locale as Locale; -const t = translate(locale); ---- - -<Page title={t(tPage, { key: 'title' })}> - <section> - <h1>{t(tPage, { key: 'title' })}</h1> - <p set:html={t(tPage, { key: 'about-lallans' })} /> - <LallansIssuesGallery /> - </section> -</Page> diff --git a/src/pages/[locale]/furthsettins/scotsoun/[scotsounId]/index.astro b/src/pages/[locale]/furthsettins/scotsoun/[scotsounId]/index.astro deleted file mode 100644 index 4244f70..0000000 --- a/src/pages/[locale]/furthsettins/scotsoun/[scotsounId]/index.astro +++ /dev/null @@ -1,28 +0,0 @@ ---- -import Page from '$layouts/Page.astro'; -import localeStaticPaths from '$lib/localeStaticPaths'; -import tPage from '$i18n/translations/pages/scotsounRelease'; -import translate from '$i18n/translate'; -import type Locale from '$types/Locale'; -import { getScotsoun } from '$data/scotsoun'; -import type ScotsounId from '$types/ScotsounId'; -import Scotsoun from '$components/Scotsoun.astro'; - -export async function getStaticPaths() { - const scotsounIds = Object.keys(getScotsoun) as `${ScotsounId}`[]; - return scotsounIds.flatMap((n) => - localeStaticPaths.map((p) => ({ ...p, params: { ...p.params, scotsounId: n } })) - ); -} - -const locale = Astro.params.locale as Locale; -const scotsounId = Astro.params.scotsounId as ScotsounId; -const t = translate(locale); - -const scotsoun = await getScotsoun[scotsounId](); ---- - -<Page title={t(tPage, { key: 'title', scotsounId, name: scotsoun.title })}> - <Scotsoun scotsoun={scotsoun} /> - <script src="$scripts/wc/paypal-product-buttons.ts"></script> -</Page> diff --git a/src/pages/[locale]/furthsettins/scotsoun/[scotsounId]/payment-success-confirmation.astro b/src/pages/[locale]/furthsettins/scotsoun/[scotsounId]/payment-success-confirmation.astro deleted file mode 100644 index 9e152ee..0000000 --- a/src/pages/[locale]/furthsettins/scotsoun/[scotsounId]/payment-success-confirmation.astro +++ /dev/null @@ -1,30 +0,0 @@ ---- -import Page from '$layouts/Page.astro'; -import localeStaticPaths from '$lib/localeStaticPaths'; -import translate from '$i18n/translate'; -import tPage from '$i18n/translations/pages/scotsounPaymentSuccessConfirmation'; -import type Locale from '$types/Locale'; -import { getScotsoun } from '$data/scotsoun'; -import type ScotsounId from '$types/ScotsounId'; - -export async function getStaticPaths() { - const scotsounIds = Object.keys(getScotsoun) as `${ScotsounId}`[]; - return scotsounIds.flatMap((n) => - localeStaticPaths.map((p) => ({ ...p, params: { ...p.params, scotsounId: n } })) - ); -} - -const locale = Astro.params.locale as Locale; -const scotsounId = Astro.params.scotsounId as ScotsounId; -const t = translate(locale); ---- - -<Page title={t(tPage, { key: 'title' })}> - <section> - <h1>{t(tPage, { key: 'title' })}</h1> - <p>{t(tPage, { key: 'payment-confirmation-message', scotsounId })}</p> - <a href={`/${locale}/furthsettins/scotsoun/${scotsounId}`}> - {t(tPage, { key: 'back-button-text', scotsounId })} - </a> - </section> -</Page> diff --git a/src/pages/[locale]/furthsettins/scotsoun/index.astro b/src/pages/[locale]/furthsettins/scotsoun/index.astro deleted file mode 100644 index 26f1f13..0000000 --- a/src/pages/[locale]/furthsettins/scotsoun/index.astro +++ /dev/null @@ -1,23 +0,0 @@ ---- -import Page from '$layouts/Page.astro'; -import localeStaticPaths from '$lib/localeStaticPaths'; -import translate from '$i18n/translate'; -import tPage from '$i18n/translations/pages/scotsounGallery'; -import type Locale from '$types/Locale'; -import ScotsounCdGallery from '$components/ScotsounCdGallery.astro'; - -export async function getStaticPaths() { - return localeStaticPaths; -} - -const locale = Astro.params.locale as Locale; -const t = translate(locale); ---- - -<Page title={t(tPage, { key: 'title' })}> - <section> - <h1>Scotsoun</h1> - <p>{t(tPage, { key: 'about-scotsoun' })}</p> - <ScotsounCdGallery /> - </section> -</Page> |
